package com.itheima.feign;

import com.itheima.pojo.User;
import org.springframework.stereotype.Component;

@Component
public class UserClientFallback  implements UserClient{

    @Override
    public User queryById(Long id){
        User user = new User();
        user.setId(id);
        user.setName("用户查询异常！");
        return user;
    }
}
